package com.gateway.common.core.page;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.List;

/**
 * @author Huangkai
 */
public class PageResult<T> {

    public Page<T> pageData(IPage<T> filterUrlIPage){
        Page<T> page = new Page<>();
        page.setCurrent(filterUrlIPage.getCurrent());
        page.setSize(filterUrlIPage.getSize());
        page.setTotal(filterUrlIPage.getTotal());
        page.setRecords(filterUrlIPage.getRecords());
        return page;
    }
}
